package com.xjrsoft.module.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjrsoft.module.base.entity.XjrBaseUser;
import com.xjrsoft.module.base.entity.XjrBaseUserRelation;
import com.xjrsoft.module.base.vo.MemberUserVo;
import com.xjrsoft.module.base.vo.SpecialPostUserVo;
import com.xjrsoft.module.base.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户关系表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-11-04
 */
public interface XjrBaseUserRelationMapper extends BaseMapper<XjrBaseUserRelation> {

    Set<SpecialPostUserVo> getUsersOfSpecialPosts(@Param("objectId")String objectId,@Param("objectType") Integer objectType);

    Set<SpecialPostUserVo> getAllUsersOfSpecialPosts(@Param("ids") Set<String> ids,@Param("objectType") Integer objectType);

    List<XjrBaseUser> getUsersOfObject(@Param("objectId") String objectId,@Param("objectType") Integer objectType);

    List<MemberUserVo> getMemberUserVoListOfObject(@Param("objectId") String objectId, @Param("objectType") Integer objectType, @Param("keyword") String keyword);
}
